<template>
	<view style="padding: 20rpx;">
		<view class="bold-text">认证编号：{{info.on}}</view>
		<view class="bold-text">商品名称：{{info.goods_title}}</view>
		<view class="bold-gray">生产厂家：{{info.agent_title}}</view>
		<u-divider text="产品参数" textPosition="left"></u-divider>
		<view class="bold-gray">品牌：{{info.brand_title}}</view>
		<!-- <view class="bold-gray">型号：4L</view> -->
		<view class="bold-gray">机油分类：{{info.cate_title}}</view>
		<view class="bold-gray">销售人员：{{info.user_manage_title_text}}</view>
		<view class="bold-gray">所属公司：{{info.company_title}}</view>
		<view class="bold-gray">认证时间：{{info.addtime_text}}</view>
		<view style="padding: 20rpx 0;">扫码地址</view>
		<view class="bold-gray">{{info.address}}</view>
		<view class="scan-address">
			<map style="width: 100%;height: 600rpx;" :latitude="info.latitude" :longitude="info.longitude"></map>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:'',
				info:{}
			}
		},
		onLoad(query) {
			this.id = query.id
			this.init()
		},
		methods: {
			async init(){
				const {	code,
						data,
						msg
					} = await this.request('ewm_log/info', {id:this.id}, 'POST')
					if(code==1){
						this.info = data
					}
				
			}
		}
	}
</script>

<style>
.bold-text{
	font-size: 32rpx;
}
.bold-gray{
	font-size: 28rpx;
	color: #333;
}
.scan-address{
	width: 710rpx;
	height: 600rpx;
}
</style>
